<m:message xmlns="http://www.w3.org/1999/xhtml"
	xmlns:m="http://jboss.com/products/seam/mail"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich">
	<m:from name="www.crotouristguide.com"
		address="contact@crotouristguide.com" />
	<m:to>contact@crotouristguide.com</m:to>

	<m:subject>#{messages['ctg']} - #{feedbackAction.feedbackType=='ri'?messages['label.contact.type.reservationInfo']:messages['label.contact.type.info']}</m:subject>
	<m:body>
		<table>
			<tr>
				<td colspan="3" style="font-weight: bold;">
					<h:outputText
						value="#{messages['message.objekt.contact.senderdata']}" />
				</td>
			</tr>
			<tr>
				<td>
					<h:outputText
						value="#{messages['message.objekt.contact.sendername']}" />
				</td>
				<td width="5px"></td>
				<td style="font-weight: bold;">
					<h:outputText value="#{feedbackAction.feedbackName}" />

				</td>
			</tr>
			<tr>
				<td>
					<h:outputText
						value="#{messages['message.objekt.contact.sendermail']}" />
				</td>
				<td></td>
				<td style="font-weight: bold;">
					<h:outputText value="#{feedbackAction.feedbackEmail}" /> <i>(#{messages['label.email.abilities.askforinfos.notereplytothisemail']})</i>
				</td> 
			</tr>
			<tr>
				<td>
					#{feedbackAction.feedbackType=='ri'?messages['label.contact.type.reservationInfo']:messages['label.contact.type.info']}
				</td>
				<td></td>
				<td>
					<h:outputLink
					value="http://www.crotouristguide.com#{application.contextPath}/guides/objekti/objekt.seam">
					<f:param name="idObjekta" value="#{feedbackAction.objekt.idObjekta}"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(feedbackAction.objekt)}"/>
					<h:outputText value="#{feedbackAction.objekt.naziv}" />
				</h:outputLink>
				<h:outputText value=", #{feedbackAction.objekt.mjesto.otok.naziv}"
					rendered="#{! empty feedbackAction.objekt.mjesto.otok}" />
				, <h:outputLink
					value="http://www.crotouristguide.com#{application.contextPath}/guides/mjesta/mjesto.seam">
					<f:param name="idMjesta" value="#{feedbackAction.objekt.mjesto.idMjesta}"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(mjesto)}"/>
					<h:outputText
						value="#{feedbackAction.objekt.mjesto.naziv}" />
				</h:outputLink>
				</td> 
			</tr>
			
		</table>
		<h:panelGroup
			rendered="#{(! empty feedbackAction.feedbackDateArrival) and (! empty feedbackAction.feedbackDateDeparture)}">
			<p>
				<h:outputText value="#{messages['message.objekt.contact.inqiry']}" /><br/>
				<h:outputText
					value="#{messages['message.objekt.contact.sendermessagetemplate']}" />
			</p>
		</h:panelGroup>
		<rich:spacer />
		<h:panelGroup rendered="#{! empty feedbackAction.feedbackMessage}">
			<p>
				<h:outputText
					value="#{feedbackAction.feedbackType=='ri'?messages['message.objekt.contact.sendernote']:messages['message.objekt.contact.inqiry']}" />
				<br />
				<i><h:outputText value="#{feedbackAction.feedbackMessage}" />
				</i>
			</p>
		</h:panelGroup>
		<rich:spacer />
		<p>
			<h:outputText
				value="#{messages['message.objekt.contact.sendersign']}" />
			<br />
			<i><h:outputText value="#{feedbackAction.feedbackName}" />
			</i>
		</p>
		<hr />
		<p style="font-size: 10px; font-family: Arial;">
			<h:outputText value="#{messages['label.email.abilities.askforinfos.tmplt.footer']}" />
		</p>
	</m:body>
</m:message>